<?php


/**
 * View
 */
class Numbers_View extends Psa_Plugin_View{

	
	/**
	 * Renders even_numbers.tpl template and puts rendered html in "result" smarty value
	 */	
	function even_numbers(){
		$rendered_result = $this->psa_smarty->fetch("example_app2/even_numbers.tpl");
		$this->psa_smarty->assign("content", $rendered_result);
	}
	
	
	/**
	 * Renders odd_numbers.tpl template and puts rendered html in "result" smarty value
	 */
	function odd_numbers(){
		$rendered_result = $this->psa_smarty->fetch("example_app2/odd_numbers.tpl");
		$this->psa_smarty->assign("content", $rendered_result);
	}	
	
	
	/**
	 * Renders prim_numbers.tpl template and puts rendered html in "result" smarty value
	 */
	function prim_numbers(){
		$rendered_result = $this->psa_smarty->fetch("example_app2/prim_numbers.tpl");
		$this->psa_smarty->assign("content", $rendered_result);
	}
}
?>